var http=require('http');

http.createServer(function(request,response){
    //发送头部
    //发送http状态值
    //内容类型：text/plain
    response.writeHead(200,{'Content-Type':'text/plain'});
    //发送响应数据
    response.end('hello world!')
}).listen(3000);